<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnFieldStepCategoryTypeInProjectSteCategoryConfirmConfigTable extends AbstractMigration
{
    public function up()
    {
        $this->table("project_step_category_confirm_config")
            ->addColumn('step_category_type', 'string', ['default' => 'step_category', 'limit' => 128, 'comment' => '环节确认类型:step_category 环节,role 角色'])
            ->save();
    }

    public function down()
    {
        $this->table('project_step_category_confirm_config')
            ->removeColumn('step_category_type')
            ->save();
    }
}
